﻿/*
 * 由SharpDevelop创建。
 * 用户： lucifer
 * 日期: 2011/3/17
 * 时间: 18:32
 * 
 * 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件
 */
using System;
using System.Collections.Generic;

namespace Yidu.Persister.Mapping
{
	/// <summary>
	/// Description of TableMappingInfo.
	/// </summary>
	public class TableMappingInfo
	{
		public string TableName { get;set;}
		public Type EntryType { get;set;}
		public string EntryName { get;set;}
		
		private Dictionary<string, FieldMappingInfo> tableFieldMapping = new Dictionary<string, FieldMappingInfo>();
		private Dictionary<string, FieldMappingInfo> entryPropertyMapping = new Dictionary<string, FieldMappingInfo>();
	    private List<string> primaryKeyList = new List<string>();

	    public List<string> PrimaryKeys
	    {
	        get { return primaryKeyList; }
	    }

		public Dictionary<string, FieldMappingInfo> FieldMapping{
			get{
				return tableFieldMapping;
			}
		}
		
		public Dictionary<string, FieldMappingInfo> PropertyMapping{
			get{
				return entryPropertyMapping;
			}
		}
	}
}
